package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.framework.handler.ListTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

import java.util.List;

/**
 * 动态对象 ap_content
 *
 * @author mars
 * @date 2024-03-13
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "动态对象")
@Builder
@Accessors(chain = true)
@TableName("ap_content")
public class ApContent extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private String id;
    /**
     * 主题
     */
    @Excel(name = "主题")
    @ApiModelProperty(value = "主题")
    private String subject;
    /**
     * 标题
     */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    /**
     * 用户昵称
     */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String username;
    /**
     * 收藏数量
     */
    @Excel(name = "收藏数量")
    @ApiModelProperty(value = "收藏数量")
    private Integer collnum;
    /**
     * 喜欢数量
     */
    @Excel(name = "喜欢数量")
    @ApiModelProperty(value = "喜欢数量")
    private Integer likenum;
    /**
     * 城市
     */
    @Excel(name = "城市")
    @ApiModelProperty(value = "城市")
    private String city;
    /**
     * 头像
     */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像")
    private String avatar;
    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String photo;


    /**
     * 图片
     */
    @TableField(exist = false)
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private List<String> photoList;

    /**
     * 评论列表
     */
    @TableField(exist = false)
    @Excel(name = "评论列表")
    @ApiModelProperty(value = "评论列表")
    private List<ApComment> commentList;

}
